package com.giaothong.http;

import org.json.JSONObject;

import android.content.Context;

import com.giaothong.config.ServerUrl;
import com.giaothong.http.core.HttpAsyncCallback;
import com.giaothong.http.core.HttpConnectionId;
import com.giaothong.http.core.NewHttpConnectionAsync;
import com.giaothong.utils.ALog;

public class HttpGetListLocationStatusRequest extends NewHttpConnectionAsync {

	public HttpGetListLocationStatusRequest(Context context, HttpAsyncCallback<JSONObject> callback) {
		super(context, HttpConnectionId.GET_LIST_LOCATION_STATUS, callback);
	}

	/**
	 * Call this func to request to server
	 * 
	 * @param pram1
	 * @param param2
	 */
	public void request() {
		// Create json object with data
		rootObj = new JSONObject();

		// executable request
		ALog.i("Requests", ServerUrl.GET_LIST_LOCATION_STATUS_URL + "___" + rootObj.toString());
		this.execute(ServerUrl.GET_LIST_LOCATION_STATUS_URL);
	}

}
